<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      * {
        padding: 0;
        margin: 0;
        box-sizing: border-box;
      }

      body {
        width: 100vw;
        height: 100vh;
        background: #2c3e50;
        display: flex;
        justify-content: center;
        align-items: center;
      }

      main {
        width: 400px;
        height: 400px;
      }

      .clock {
        width: 400px;
        height: 400px;
        border-radius: 50%;
        background: radial-gradient(at right, #27ae60, #e67e22, #e74c3c, #e67e22, #27ae60);
        position: relative;
        z-index: -2;
      }

      .clock::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: #2c3e50;
        width: 90%;
        height: 90%;
        border-radius: 50%;
        z-index: -1;
      }

      .line {
        width: 80%;
        height: 80%;
        border-radius: 50%;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
      }

      .line::before {
        content: '';
        width: 90%;
        height: 90%;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        border-radius: 50%;
        background: #2c3e50;
        z-index: 1;
      }

      .line::after {
        content: '';
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: #fff;
        z-index: 1;
      }

      .line div {
        width: 8px;
        height: 100%;
        background: #fff;
        position: absolute;
        left: 50%;
      }

      .line > div:nth-of-type(1) {
        transform: translateX(-50%) rotate(0);
      }

      .line > div:nth-of-type(2) {
        transform: translateX(-50%) rotate(30deg);
      }

      .line > div:nth-of-type(3) {
        transform: translateX(-50%) rotate(60deg);
      }

      .line > div:nth-of-type(4) {
        transform: translateX(-50%) rotate(90deg);
      }

      .line > div:nth-of-type(5) {
        transform: translateX(-50%) rotate(120deg);
      }

      .line > div:nth-of-type(6) {
        transform: translateX(-50%) rotate(150deg);
      }

      .hour {
        position: absolute;
        left: 50%;
        transform: translate(-50%);
        bottom: 50%;
        width: 5px;
        height: 15%;
        background: #fff;
      }

      .minute {
        position: absolute;
        left: 50%;
        bottom: 50%;
        width: 3px;
        height: 25%;
        background: #fff;
        transform-origin: bottom;
        transform: translate(-50%) rotate(60deg);
      }

      .second {
        position: absolute;
        left: 50%;
        bottom: 50%;
        width: 1px;
        height: 35%;
        background: #fff;
        transform-origin: bottom;
        transform: translate(-50%) rotate(90deg);
        transition: 45s;
      }

      main:hover .second {
        transform: translateX(-50%) rotate(360deg);
      }
    </style>
  </head>
  <body>
    <main>
      <div class="clock">
        <div class="line">
          <div></div>
          <div></div>
          <div></div>
          <div></div>
          <div></div>
          <div></div>
        </div>
        <div class="hour"></div>
        <div class="minute"></div>
        <div class="second"></div>
      </div>
    </main>
  </body>
</html>
